package urjc.as.emergencies.data;

import java.util.ArrayList;
import java.util.List;

public class MissionList extends BaseEntity {

	/**
	 * Para generar el id de la misión
	 */
	private static int missionNumber = 23;
	
	/**
	 * Lista de las misiones almacenadas por identificador
	 */
	private List<String> missionsList = new ArrayList<String>();

	public void setMissionsList(List<String> missionsList) {
		this.missionsList = missionsList;
	}

	public List<String> getMissionsList() {
		return missionsList;
	}

	public MissionList (){
		this.missionsList = new ArrayList<String>();
	}
	
	public MissionList (List<String> _missionsList){
		this.missionsList = _missionsList;
	}
	
	public void addMission(String _mission){
		this.missionsList.add(_mission);
	}
	

	public void removeMission(String uri){
		this.missionsList.remove(uri);
	}
	
	public int generateMissionID(){
		return missionNumber++;
	}
}
